package edu.java.texbooks.scjp.threads.test04.mailbox.extra;

public class TestMailbox {
	public static void main(String[] args) {
		Mailbox mailbox= new Mailbox();
		
		Consumer consumer= new Consumer(mailbox);
		Publisher publisher= new Publisher(mailbox);
		
		Thread consumerThread= new Thread(consumer);
		Thread publisherThread= new Thread(publisher);
		
		consumerThread.start();
		publisherThread.start();
		
	}
}
